package ycl.scheduled.common.models.req.scheduled;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author: YCL
 * @date: 2022/01/20 14:41:29
 */
@Data
@ApiModel("日程创建")
public class ScheduledCreateReq {

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "到期时间", required = true)
	@NotBlank(message = "请选择时间")
	private LocalDateTime expireTime;

	@ApiModelProperty(value = "事件", required = true)
	@NotBlank(message = "请输入事件")
	private String detail;

	@ApiModelProperty("纬度")
	private BigDecimal lat;

	@ApiModelProperty("经度")
	private BigDecimal lng;

	@ApiModelProperty("地点")
	@TableField("address")
	private String address;
}
